package com.tosit.driverschool.service;

import com.tosit.driverschool.common.entity.Vehicle;
import org.springframework.stereotype.Service;

import java.util.Set;
import java.util.List;
@Service
public interface VehicleService {

    Vehicle selectbyId(short id);
    public void updateIsdelete(Vehicle vehicle);

    void update(Vehicle vehicle);

    int add(Vehicle vehicle);

    public Set<String> getAllType(String subject);
    public Set<String> getAllSubject(String type);

    public List<Vehicle> findAll();

    short getmaxId();
}
